package com.disthen.message.core;

import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

public class MessageTemplate extends RabbitTemplate {

	public MessageTemplate(ConnectionFactory connectionFactory) {
		super(connectionFactory);
	}
	
	public void sendMsg(String topic,Object msg){
		convertAndSend(topic, msg);
	}
}
